file for the log output, which is rsyslog to check the size of the file, 2097152 indicates the size threshold of the log file, Xx_log_ Dump.sh represents a script that executes after the log file arrives at a threshold, typically a dump script, separated by a space between the parameters and the program. After this configuration, Rsyslog will be/var/
Linux Log audit project case (production environment log audit project solution)
Log auditing records information about all systems and related user behaviors and can be automatically analyzed, processed, and displayed (including
-------1 root root 0 June 23:17/var/log/sudo.log5. Test sudo log audit configuration results[Email protected]_back ~] #whoamiRoot[Email protected]_back ~] #su-ci001-bash:warning:setlocale:lc_ctype:cannot change locale (en): No such file or directory-bash:warning:setlocale:lc_collate:cannot change locale (en): No such file or directory-bash:warning:setlocale:lc_me
2011-09-27 22:11:51| Category: rhel5_033| Report | Font size Subscription Linux uses Prompt_command to realize audit functionThis system audits, records what the user, at what time, did what operation. The information is then recorded in a file.I. Configuration1. At the end of the/etc/profile file, add the following 2 lines of code:Export history_file=/var/log
I. OverviewPrevious (Understanding Linux Audit Service.) We mainly analyze the structure of Audit services, the configuration of Audit services, and how to read the meanings represented by the Audit log. This article mainly descri
Background:Linux operating system If you find a process is not known to be killed and do not know which process was killed, if we do not know can beConfiguration:1). Root log in and open the Audit.rules file, located under the/etc/audit/folder.Add the following content:-A always,exit-f arch=b64-s kill-k *wg934*Note: If the bad border is 32, please change to-f arch=b32*wg934* just behind the mark, the aspect
Production Environment Log Audit solutionThe so-called log audit, is to record all systems and related user behavior, and can automatically analyze, process, display (including text or video)1): Full log audit via environment vari
The company's Linux server enabled sudo rights management, but there are some risks, so in order to facilitate management and follow-up maintenance, turn on the Sudo log audit function, the user executes the sudo command operation behavior record, but do not log other commands.First, Rsyslog all operation
Tags: share histsize tor read-only print format completion technology InuxAt present, the company has several machines more important, need to record all the user's operation, so that is the reference material to complete1. vim/etc/profile.d/oplogrc.shlogdir=/opt/oploguserdir= $logdir/${logname}dt= ' date + '%y%m%d ' ' export histfile= '/$userdir/history. $DT "Export histtimeformat= "%F%T:" Export histsize=128export histfilesize=8192export prompt_comm
Audit can configure rules, this rule is mainly issued to the kernel module, the kernel Audit module will follow this rule to obtain audit information, sent to AUDITD to record logs.The rule types can be divided into:1, control rules : Control the audit system rules;2, File system rules : can also be considered as file
Linux remote log rsyslog server and client Installation
The reason for using Rsyslog:1. Prevent system crashes unable to get system log share crash reason, with Rsyslog can transfer log to remote log server2. Using the Rsyslog log
; INSTALL PLUGIN AUDIT SONAME ' libaudit_plugin.so ';ERROR (HY000): file ' mysqld ' not found (Errcode:2-No such File or directory)mysql> INSTALL PLUGIN AUDIT SONAME '/opt/mysql/mysql-5.7.22-linux-glibc2.12-x86_64/lib/plugin/libaudit_plugin.so ‘;ERROR 1124 (HY000): No paths allowed for shared librarySolution:Reference 78827375See if plug-in features are turned on
permissions of the soft link file, different from the original file4, modify any file, the other changes5, delete the original file, soft links can not be usedLess restrictive, and flexible[[email protected] ~]# lsAnacondalks.cfg Cangls Install.log Install.log.syslog[Ro[email protected] ~]# ln-s/root/anaconda-ks.cfg/tmp/cangls.soft[Email protected] ~]# Ln/root/cangls/tmp/cangls.hard[email protected] ~]# LLTotal Dosage 40-rw-r--r--. 2 root root 1207 January 22:00 Cangls...[Email protected] ~]# l
I. Audit INTRODUCTIONAudit is a system in a Linux system that records the user's underlying invocation, such as recording a user's execution of a open,exit system call.The record is written to the log file.Audit can add or remove audit rules by using the Auditctl command . Set a record for a user , or for aThe process
(the parameter of the method "JSON format"),
Execution time (execution),
Duration (execution time is "usually milliseconds"),
IP address (client IP addresses),
Computer name (client name),
Exception (Exception "If method throws exception") information.
With this information, we can not only know who is doing the work, but also can estimate the performance of the application and the exception thrown. Even more, you can get stat
"JSON format"),
Execution time (execution),
Duration (execution time is "usually milliseconds"),
IP address (client IP addresses),
Computer name (client name),
Exception (Exception "If method throws exception") information.
With this information, we can not only know who is doing the work, but also can estimate the performance of the application and the exception thrown. Even more, you can get statistics about the usage of the
Oracle databases have always had the ability to audit operation types against the database and to keep audit trails in a system table. This table is named Sys.aud$ and is located in the data directory. In some operating systems, you can also write audit records for the operating system's own event log subsystem.
Oracl
/%{host}_%{+yyyy-mm-dd_hh}.gz" gzip=truecodec= = line {format ="%{message}" } }}
Attention!!!
Replace that place between the fields I use tab-separated, if using vim must not write \ t, this in hive does not know anything else, in Vim, first press CTRL + V, and then press TAB
In Vim, the set list is displayed as followsMARIADB audit log
/log/sudo.log is created automatically, and if you don't see it, exit and log back in.The user is root, and the permissions are 600[Email protected] ~]# Ll/var/log/sudo.log #确保只有root才可以看到-RW-------1 root root 0 19:48/var/log/sudo.logV. Test sudo log
associated IP or host name.############################################################ #科普小知识 ############################################# ################@1, log format introduction:General domestic is the Chinese version of Windows, so there is no English can not understand the problem, need to pay attention to the following fields (especially red):(1) Event ID, of course, this is the filter condition
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.